package lac.serviceflow.cfg;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

@XStreamAlias("method")
public class FlowMethod implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6194305004196329520L;
	@XStreamAsAttribute
	private String id;
	@XStreamAsAttribute
	private String serviceUnitName;
	@XStreamAsAttribute
	private String methodName;
	@XStreamAsAttribute
	private Integer sort;
	@XStreamAsAttribute
	private String condition;
	@XStreamOmitField
	private ServiceFlow serviceFlow;
	@XStreamImplicit(itemFieldName="param")
	private List<FlowMethodParam> flowMethodParams = new ArrayList<FlowMethodParam>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getServiceUnitName() {
		return serviceUnitName;
	}

	public void setServiceUnitName(String serviceUnitName) {
		this.serviceUnitName = serviceUnitName;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public ServiceFlow getServiceFlow() {
		return serviceFlow;
	}

	public void setServiceFlow(ServiceFlow serviceFlow) {
		this.serviceFlow = serviceFlow;
	}

	public List<FlowMethodParam> getFlowMethodParams() {
		return flowMethodParams;
	}

	public void setFlowMethodParams(List<FlowMethodParam> flowMethodParams) {
		this.flowMethodParams = flowMethodParams;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}
	
	
}
